package com.struts.utils;

import com.struts.exception.NullArgumentException;
import com.struts.exception.NullEmptyStringArgumentException;


public class ControleMetierUtils {

	public static void notNullArgument(Object value,String name){
		if(value == null){
			throw new NullArgumentException(name);
		}
	}
	
	public static void notNullAndEmptyStringArgument(String value,String name){
		if(value == null || value.isEmpty()){
			throw new NullEmptyStringArgumentException(name);
		}
	}
}
